10.08.2010, 20:41
THe command I've made for set skin :
and the "/si" :
It's already on the top new posx,posy,posz,spawn[MAX_PLAYERS];
But how do I change the spawn pos and player skin info after use these commands? Last time I tried got a weird error, which is on my signature the screen ; Thank you.
Код:
dcmd_skin(playerid,params[])
{
new tmp2[256], Index; tmp2 = strtok(params,Index);
new skin = strval(tmp2);
if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /skin [skin id]");
if(!IsValidSkin(skin)) return SendClientMessage(playerid, COLOR_WHITE, "Skin Invalido");
SetPlayerSkin(playerid, skin);
return SendClientMessage(playerid, vermelho, "/si for save skin and your spawn position!!");
}
Код:
if(strcmp("/si", cmdtext, true, 4) == 0)
{
GetPlayerPos(playerid, posx,posy,posz);
GetPlayerSkin(playerid, sk);
SendClientMessage(playerid, vermelho, "skin/position sucesfully saved");
SetSpawnInfo(playerid, 0, sk, posx, posy, posz,0,0,0,0,0,0,0);
spawn[playerid]=1;
return 1;
}
But how do I change the spawn pos and player skin info after use these commands? Last time I tried got a weird error, which is on my signature the screen ; Thank you.

