Code
dcmd_einmieten(playerid,params[])
{
#pragma unused params
if(PlayerToPoint(1.0,playerid, 2236.0640,-1158.6638,1029.7969) ||
PlayerToPoint(1.0,playerid, 2246.4021,-1160.8137,1029.7969) ||
PlayerToPoint(1.0,playerid, 2235.9033,-1170.2769,1029.7969) ||
PlayerToPoint(1.0,playerid, 2226.4512,-1183.6294,1029.7969) ||
PlayerToPoint(1.0,playerid, 2208.8176,-1193.8262,1029.7969) ||
PlayerToPoint(1.0,playerid, 2198.0286,-1172.9612,1029.8043) ||
PlayerToPoint(1.0,playerid, 2198.6560,-1158.0609,1029.7969) ||
PlayerToPoint(1.0,playerid, 2188.4297,-1156.8160,1029.7969))
{
new name[MAX_PLAYER_NAME], s[128];
GetPlayerName(playerid,name,sizeof(name));
format(s,sizeof(s),"acc/%s.ini",name);
if(dini_Exists(s)) {
new hsave = dini_Int(s, "hsave");
if(hsave == 1) {
GetPlayerPos(playerid,sx[playerid],sy[playerid],sz[playerid]);
GetPlayerFacingAngle(playerid,pan[playerid]);
inte[playerid]=GetPlayerInterior(playerid);
Virt[playerid]=GetPlayerVirtualWorld(playerid);
dini_IntSet(s,"spawn",1);
dini_FloatSet(s,"x",sx[playerid]);
dini_FloatSet(s,"y",sy[playerid]);
dini_FloatSet(s,"z",sz[playerid]);
dini_FloatSet(s,"a",pan[playerid]);
dini_IntSet(s,"inte",inte[playerid]);
dini_IntSet(s,"Virt",Virt[playerid]);
dini_IntSet(s,"hsave",0);
SendClientMessage(playerid, green,"Du hast Dich Ins Zimmer Eingemietet!");
}
else{SendClientMessage(playerid, rot,"Du Hast Dich Noch Nicht Angemeldet!");}
}
}
return 1;
}
Alles anzeigen
wie bekommt er die narricht du bist nich angemeldet nicht wenn er nicht an der position ist ?
wenn jemand weiss wieso danke für die hilfe
MFG: QIni
//EDIT: Hir durch soll sie ja kommen => else{SendClientMessage(playerid, rot,"Du Hast Dich Noch Nicht Angemeldet!");}
nur igendwie kommt sie nicht