23.01.2015, 08:50
hello guys
i have problem the CMD not showing the Checkpoints when i type 1 or 2
help please +reps
i have problem the CMD not showing the Checkpoints when i type 1 or 2
help please +reps
PHP код:
CMD:createhouse(playerid, params[])
{
new type[24],interior;
new Float:x, Float:y, Float:z;
if(sscanf(params,"is[24]", interior, type)) return SendClientMessage(playerid, -1, "/createhouse [1~2][type]");
if(interior > 2) SendClientMessage(playerid, -1, "Invaild Interior ID");
GetPlayerPos(playerid, x, y, z);
if(!strcmp("enter",type, true))
{
if(interior == 1)
{
house1Ent = CreateDynamicCP( x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else if(interior == 2)
{
house2Ent = CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
}
if(!strcmp("exit",type, true))
{
if(interior == 1)
{
house1Exit = CreateDynamicCP( x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else if(interior == 2)
{
house2Exit = CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
}
return 1;
}