else if(!strcmp(param, "pos", true, 3))
{
new Float:x,
Float:y,
Float:z;
if(sscanf(params, "fff", x, y, z))
{
return SendClientMessage(playerid, -1, "/tp pos <X Y Z> (Sans les virgules)");
}
SetPlayerPos(playerid, x, y, z);
SetInterior(playerid, 0);
SetVirtualWorld(playerid, 0);
SendClientMessage(playerid, -1, "Vous venez d'кtre tйlйportй.");
}
COMMAND:tp(playerid,params[])
{
new tmp[40], auxParams[124];
if(sscanf(params, "s[40]S()[124]", tmp, auxParams))
{
return 1;
}
if(strcmp(tmp, "pos", true)==0)
{
new Float:x,
Float:y,
Float:z;
if(sscanf(auxParams, "fff", x, y, z))
{
return SendClientMessage(playerid, -1, "/tp pos <X Y Z> (Sans les virgules)");
}
SetPlayerPos(playerid, x, y, z);
SetInterior(playerid, 0);
SetVirtualWorld(playerid, 0);
return 1;
}
return 1;
}