28.04.2009, 13:40
I want a command, So when you type /home
It teleports you to your house selected,
I have a code but it has loads of unusual errors,
Does anyone know the correct code for this?
I want it so when you type /home and your name is Michael
It teleports you to your house, But if your name is Joe,
It teleports you to a diffrent house but using the same command,
Can anyone fix this code,
It teleports you to your house selected,
I have a code but it has loads of unusual errors,
Does anyone know the correct code for this?
I want it so when you type /home and your name is Michael
It teleports you to your house, But if your name is Joe,
It teleports you to a diffrent house but using the same command,
Can anyone fix this code,
pawn Код:
if( !strcmp(cmdtext,"/home",true ))
{
new name[24];
GetPlayerName(playerid,name,24);
if(strcmp(name, "Michael", false) == 0)
{
SetPlayerPos(playerid, 2503.489014, -7967.976074, 1.326540);
return 1;
}