21.04.2011, 07:37
if(strcmp(cmd, "/myhouse", true) == 0) {
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
return 1;
}
SendClientMessage(playerid, 0xFF7F50AA, "You teleported to your house!");
SetPlayerPos(X,Y,Z);//you coordinates
SetPlayerInterior(playerid,interiorid);//your interior id
return 1;
}
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
return 1;
}
SendClientMessage(playerid, 0xFF7F50AA, "You teleported to your house!");
SetPlayerPos(X,Y,Z);//you coordinates
SetPlayerInterior(playerid,interiorid);//your interior id
return 1;
}