28.04.2009, 14:08
Try this =)
PS: You forgot a } (that gives loooots of errors) and also you didn't set Interior.... maybe the command had worked with the }
but you only would have seen your player..nothing more....
So for teleport always use: SetPlayerInterior(playerid, Interior);..
Hope it works =)
Bearfist
Код:
if( strcmp(cmdtext,"/home",true )== 0) { new name[24]; GetPlayerName(playerid,name,24); if(strcmp(name, "Michael", false) == 0) { SetPlayerPos(playerid, 2503.489014, -7967.976074, 1.326540); SetPlayerInterior(playerid, Here the number ) //In houses the interior is different but when you aren't in a house or building it is always 0 //when you want to get the interior of the house go in it and type /interior return 1; } else if(strcmp(name,"Joe",false) == 0) { SetPlayerPos(playerid,blablabla); SetPlayerInterior(playerid,blablabla); } else { //what to do with gusy that haven't a name like micheal or joe ? //maybe: SendClientMessage(playerid,COLOR_RED,"You aren't allowed to use this command!"); } return 1; }
but you only would have seen your player..nothing more....
So for teleport always use: SetPlayerInterior(playerid, Interior);..
Hope it works =)
Bearfist